import type { LoginParams, LoginRes, Profile } from "@/types/user";
import { request } from "@/utils/reuqest";
/**登录接口封装
* @ description:登录接口封装
* @ param {*} data {mobile,password}
* @ return {*} promise
* */
export const loginAPI=(data:LoginParams)=>{
  return request<LoginRes>('/park/login', 'POST', data)
}
/**
 * @description: 获取用户信息
 * @param {*} data {}
 * @return {*} promise
 */
export const getProfileAPI = () => {
  return request<Profile>('/park/user/profile')
}
